package level.editor.view.action.frame;

import java.awt.event.ActionEvent;

import level.editor.view.action.DesktopAction;
import level.editor.view.desktop.Desktop;
import level.editor.view.frame.InternalFrameTest;

public class AddFrameAction extends DesktopAction
{
	public AddFrameAction(Desktop desktop)
	{
		super("Add frame to desktop", desktop);
	}
	
	@Override
	public void actionPerformed(ActionEvent e)
	{
		InternalFrameTest frame = new InternalFrameTest("Testing sawp");
		desktop.add(frame, InternalFrameTest.Z_ORDER);
		frame.test();
	}

}
